package com.lancoo.cvas.mapper;

import com.lancoo.cvas.config.MybatisRedisCache;
import com.lancoo.cvas.entity.PlanTeaching;
import com.lancoo.cvas.entity.PlanTeachingStudent;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lancoo.cvas.pojo.vo.PlanTeachingToStudent;
import org.apache.ibatis.annotations.CacheNamespace;

import java.util.List;

/**
 * 教学计划对应的学生
 * 
 * @author liufeng
 * @email 1037383243@qq.com
 * @date 2023-12-04 11:54:00
 */
@CacheNamespace(implementation = MybatisRedisCache.class, eviction = MybatisRedisCache.class)
public interface PlanTeachingStudentMapper extends BaseMapper<PlanTeachingStudent> {

    int addBatch(List<PlanTeachingStudent> planTeachingStudentCollection);

    /**
     * 获取学生对应的教学计划
     * @param taskId
     * @param baseStudentId
     * @param studyNature
     * @return
     */
    PlanTeaching getTeachingPlanByStu(Integer taskId, String baseStudentId, Integer studyNature);

    /**
     * 查询学生对应教室
     * @param taskId
     * @param deleted
     * @return
     */
    List<PlanTeachingToStudent> selectPlanTeachingToStudentList(Integer taskId, int deleted);
}
